<?php
namespace app\index\controller;

use \think\Controller;
use \think\Db;
class Index extends Controller
{
    public function index()
    {
        $rs=Db::name('article')->limit(0,5)->field('id,title')->select();
		//dump($rs);
		//return view('index',['article'=>$rs]);
		$this->assign( 'article', $rs);
		return $this->fetch();
    }
}
